﻿<Window x:Class="PurchaseSales.Manage.Views.ShowDialogView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:PurchaseSales.Manage.Common" 
        Title="Edit" x:Name="Element_Window"
        local:WindowManagerHelper.FitWindowSize="True"
        AllowsTransparency="True" WindowStyle="None">
    <DockPanel>
        <StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal">
            <Button Content="OK" Command="{Binding ConfromCommand}" CommandParameter="{Binding ElementName=Element_Window}"
                    Style="{DynamicResource SquareButtonStyle}"
                     Margin="5"  FontFamily="Microsoft JhengHei, Segoe UI, PMingLiU"/>
            <Button Content="Cancel" IsCancel="True" Style="{DynamicResource SquareButtonStyle}"
                     Margin="5"  FontFamily="Microsoft JhengHei, Segoe UI, PMingLiU"/>
        </StackPanel>
        <ScrollViewer>
            <ContentControl x:Name="Element_Detail" Content="{Binding ShowDialogContent}"/>
        </ScrollViewer>
    </DockPanel>
</Window>
